import request from '../utils/request.js'

// 获取地址/店铺数据
export const address = () => {
  return request({
    method: 'GET',
    url: '/dataInfo'
  })
}

// 保存地址
export const saveAddress = data => {
  return request({
    method: 'POST',
    url: '/dataInfo',
    data
  })
}

// 删除地址
export const deleteAddress = id => {
  return request({
    method: 'DELETE',
    url: `/dataInfo/${id}`
  })
}
